<extend name="template/base_index" />


<block name="area_header">

    <link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
    <script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>
    <script type="text/javascript" src="__CDN__/jquery-validation/1.13.1/jquery.validate.min.js"></script>
    <script type="text/javascript" src="__CDN__/jquery-validation/1.13.1/localization/messages_zh.min.js"></script>

    <script type="text/javascript" charset="utf-8" src="__UPLOAD__/ueditor/1.4.3/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__UPLOAD__/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <link type="text/css" rel="stylesheet" href="__CDN__/comp/wxuploader.css?v=__APP_VERSION__" />
    <link type="text/css" rel="stylesheet" href="__CDN__/jquery-uploadify/3.2.1/uploadify.css" />
    <script type="text/javascript" src="__CDN__/jquery-uploadify/3.2.1/jquery.uploadify.min.js"></script>
    <script src="__JS__/city-picker.data.js"></script>
    <script src="__JS__/city-picker.js"></script>
    <link href="__CSS__/city-picker.css" rel="stylesheet" type="text/css" />
</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <style type="text/css">
                .contain-box {
                    width:900px;
                    min-height:800px;
                    margin:0 auto;
                    margin-bottom:80px;
                    padding:20px;
                    padding-bottom:100px;
                    border-radius: 5px;
                    background: #f1edee;
                }
                .content-title {
                    font: bold 36px/1 "Microsoft Yahei";
                    color: #404040;
                }
                .author-wrap {
                    background-color: #f6f6f6;
                    font-size: 12px;
                    margin-bottom: 30px;
                    padding: 10px;
                    line-height: 1.8;
                }
                .footer-box {
                    margin-top:200px;
                }
            </style>
            <div class="contain-box ">
                <center><h1 class="content-title">{$title}</h1></center>
                <div class="author-wrap">
                    <span>创建时间：<empty name="create_time">您还没有添加企业信息<else /> {$create_time|date='Y-m-d',###}</empty> </span>
                </div>
                <div class="content-box">
                    <p>
                        {$content}
                    </p>
                </div>
                <div class="footer-box"><center><empty name="id"><a href="{:U('Enterprise/company_resume')}" class="btn btn-info">添加</a><else /><a href="{:U('Enterprise/edit_company_resume',array('id'=>$id))}" class="btn btn-info">重新编辑</a></empty></center></div>
            </div>
        </div>
        <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
    <!--提示模态弹窗-->
    <div class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>表单信息不完整</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
</block>

<block name="area_footer">

    <script>
        var ue = UE.getEditor('ueditor',{
            toolbars:[
                ['fullscreen', 'source', 'undo', 'redo', 'bold','italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', '|','lineheight'
                    , 'fontsize','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', 'insertimage','emotion','link', 'unlink', 'anchor', '|','map','print', 'preview',  'drafts','forecolor','backcolor'
                ]
            ]});
    </script>
    <script type="text/javascript">
        /*提交表单验证*/
        function submit_post(){
            if($("[name='title']").val() == ''|| $("[name='text']").val() == ''||$("[name='address']").val() == ''){
                $('.modal').modal('show');
            }else{
                $('.validateForm').submit();
            }
        }

    </script>
</block>